package com.ruoyi.teach.event;

import com.ruoyi.teach.domain.TeachStudent;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

public class CustomStudentChangeEvent extends ApplicationEvent {
    @Getter
    private final String message;

    @Getter
    private TeachStudent teachStudent;

    public CustomStudentChangeEvent(Object source, String message) {
        super(source);
        this.message = message;
    }

    public CustomStudentChangeEvent(Object source, String message, TeachStudent teachStudent) {
        super(source);
        this.message = message;
        this.teachStudent = teachStudent;
    }

}
